home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm4_2_4
- Caption = "4-2-4"
- ClientHeight = 1320
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 2580
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 1320
- ScaleWidth = 2580
- Begin VB.PictureBox picResults
- Height = 495
- Left = 480
- ScaleHeight = 435
- ScaleWidth = 1635
- TabIndex = 1
- Top = 120
- Width = 1695
- End
- Begin VB.CommandButton cmdDisplay
- Caption = "Display Numbers"
- Height = 495
- Left = 480
- TabIndex = 0
- Top = 720
- Width = 1695
- End
- Attribute VB_Name = "frm4_2_4"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdDisplay_Click()
- 'Demonstrate that variables in a subprogram do
- 'not retain their values in subsequent calls
- picResults.Cls
- Call Three
- Call Three
- End Sub
- Private Sub Three()
- Dim num As Single
- 'Display the value of num and assign it the value 3
- picResults.Print num;
- num = 3
- End Sub
-